<template>
  <portalTable
    :height="cTableHeight"
    :tableData="tableData"
    :columnData="columnData"
    v-loading="isLoading"
    @rowClick="rowClickFun"
  ></portalTable>
</template>

<script>
import portalTable from "@/components/portalTable";
import FlowTable from "../mixins/FlowTable";
import config from "../mixins/config"; // table高度设置
export default {
  name: "FlowToDoTable",
  components: {
    portalTable
  },
  mixins: [FlowTable, config],
  props: {
    height: {
      type: [String, Number],
      default: 200
    },
    params: {
      type: Object,
      default: () => ({})
    },
    name: {
      type: String,
      default: ""
    }
  },
  data () {
    return {
      tableData: []

    };
  },
  methods: {
    rowClickFun ({ row, column, event }) {
      // console.log(row);
      window.open(row.workItemUrl);
    }
  }
};
</script>

<style>
</style>